﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Net.Sockets;

namespace ggprot
{
    public class GGNotify : GGHeader
    {
        private int[] uin;
        private byte[] usrType;

        public byte[] UsrType
        {
            get { return usrType; }
            set { usrType = value; }
        }

        public int[] Uin
        {
            get { return uin; }
            set { uin = value; }
        }

        public override void Write(NetworkStream stream)
        {
            base.Write(stream);

            BinaryWriter writer = new BinaryWriter(stream);
            for (int i = 0; i < usrType.Length; i++)
            {
                writer.Write(uin[i]);
                writer.Write(usrType[i]);
            }

            writer.Flush();
        }
    }
}
